package com.lry.easyExcel;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import java.io.Serializable;

/**
 * @author JiangJie
 * @create 2020-11-27 09:42
 */
public class Modbus extends BaseRowModel {

    @ExcelProperty(index = 0,value = "数据项名称")
    private String dataName;

    @ExcelProperty(index = 1,value = "读/写")
    private String rw;

    @ExcelProperty(index = 2,value = "寄存器地址")
    private Integer registerAddress;

    @ExcelProperty(index = 3,value = "寄存器个数")
    private Integer registerNum;

    @ExcelProperty(index = 4,value = "读功能码")
    private Integer readFunc;

    @ExcelProperty(index = 5,value = "写功能码")
    private Integer writeFunc;

    @ExcelProperty(index = 6,value = "数据格式")
    private String dataFormat;

    @ExcelProperty(index = 7,value = "说明")
    private String desc;

    //16进制内容
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }

    public String getRw() {
        return rw;
    }

    public void setRw(String rw) {
        this.rw = rw;
    }

    public Integer getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(Integer registerAddress) {
        this.registerAddress = registerAddress;
    }

    public Integer getRegisterNum() {
        return registerNum;
    }

    public void setRegisterNum(Integer registerNum) {
        this.registerNum = registerNum;
    }

    public Integer getReadFunc() {
        return readFunc;
    }

    public void setReadFunc(Integer readFunc) {
        this.readFunc = readFunc;
    }

    public Integer getWriteFunc() {
        return writeFunc;
    }

    public void setWriteFunc(Integer writeFunc) {
        this.writeFunc = writeFunc;
    }

    public String getDataFormat() {
        return dataFormat;
    }

    public void setDataFormat(String dataFormat) {
        this.dataFormat = dataFormat;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Modbus{" +
                "dataName='" + dataName + '\'' +
                ", rw='" + rw + '\'' +
                ", registerAddress=" + registerAddress +
                ", registerNum=" + registerNum +
                ", readFunc=" + readFunc +
                ", writeFunc=" + writeFunc +
                ", dataFormat='" + dataFormat + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
